package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;
import java.util.List;

/**
 * @Author: WinstonDeng
 * @Description:
 * @Date: Created in 18:09 2020/4/7
 * @Modified by:
 */
public class FlowStep {
    private long id;
    private long flowId;
    private long stepId;
    private int state;
    private String type;
    private Step step;
    private int questionScore;
    private int basicWarning;
    private int seriousWarning;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp createTime;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp updateTime;

    public static final Integer STATE_UNFINISH = 0;
    public static final Integer STATE_DOING = 1;
    public static final Integer STATE_FINISH = 2;
    public static final String TYPE_DOCTOR = "Doctor";
    public static final String TYPE_PATIENT = "Patient";


    public Step getStep() {
        return step;
    }

    public void setStep(Step step) {
        this.step = step;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getFlowId() {
        return flowId;
    }

    public void setFlowId(long flowId) {
        this.flowId = flowId;
    }

    public long getStepId() {
        return stepId;
    }

    public void setStepId(long stepId) {
        this.stepId = stepId;
    }

    public int getQuestionScore() {
        return questionScore;
    }

    public void setQuestionScore(int questionScore) {
        this.questionScore = questionScore;
    }

    public int getBasicWarning() {
        return basicWarning;
    }

    public void setBasicWarning(int basicWarning) {
        this.basicWarning = basicWarning;
    }

    public int getSeriousWarning() {
        return seriousWarning;
    }

    public void setSeriousWarning(int seriousWarning) {
        this.seriousWarning = seriousWarning;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "FlowStep{" +
                "id=" + id +
                ", flowId=" + flowId +
                ", stepId=" + stepId +
                ", state=" + state +
                ", type='" + type + '\'' +
                ", step=" + step +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
